<template>
  <div class="container" :style="style">
    <ul v-for="(item, index) in menuList" :key="index">
      <li>
        <div
          class="icon"
          :style="{ background: 'url(' + item.src + ')' }"
        ></div>
        <span>{{ item.title }}</span>
      </li>
    </ul>
  </div>
</template>

<script setup>
import { defineProps } from 'vue'
defineProps({
  menuList: {
    type: Array,
    required: true
  }
})
</script>

<style scoped lang="less">
ul {
  margin: 0;
  padding: 0;
}
li {
  display: flex;
  align-items: center;
  width: 160px;
  height: 36px;
  list-style: none;
  margin-bottom: 30px;
  .icon {
    width: 30px;
    height: 36px;
    margin-right: 12px;
    background-size: cover;
  }
  span {
    opacity: 1;
    color: rgba(159, 217, 255, 1);
    font-family: Source Han Sans SC;
    font-weight: regular;
    font-size: 16px;
    line-height: 16px;
    letter-spacing: 0px;
    text-align: left;
  }
}
</style>
